home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / ConnectionTools.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  3.3 KB  |  145 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ConnectionTools.p
  3.  
  4.      Contains:    Communications Toolbox Connection Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1988-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ConnectionTools;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CONNECTIONTOOLS__}
  27. {$SETC __CONNECTIONTOOLS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ConnectionToolsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __CONDITIONALMACROS__}
  34. {$I ConditionalMacros.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __DIALOGS__}
  37. {$I Dialogs.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __CONNECTIONS__}
  40. {$I Connections.p}
  41. {$ENDC}
  42.  
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48.  
  49. CONST
  50.                                                                 {  messages for DefProc  }
  51.     cmInitMsg                    = 0;
  52.     cmDisposeMsg                = 1;
  53.     cmSuspendMsg                = 2;
  54.     cmResumeMsg                    = 3;
  55.     cmMenuMsg                    = 4;
  56.     cmEventMsg                    = 5;
  57.     cmActivateMsg                = 6;
  58.     cmDeactivateMsg                = 7;
  59.     cmIdleMsg                    = 50;
  60.     cmResetMsg                    = 51;
  61.     cmAbortMsg                    = 52;
  62.     cmReadMsg                    = 100;
  63.     cmWriteMsg                    = 101;
  64.     cmStatusMsg                    = 102;
  65.     cmListenMsg                    = 103;
  66.     cmAcceptMsg                    = 104;
  67.     cmCloseMsg                    = 105;
  68.     cmOpenMsg                    = 106;
  69.     cmBreakMsg                    = 107;
  70.     cmIOKillMsg                    = 108;
  71.     cmEnvironsMsg                = 109;                            {  new connection tool messages for ctb 1.1  }
  72.     cmNewIOPBMsg                = 110;
  73.     cmDisposeIOPBMsg            = 111;
  74.     cmGetErrorStringMsg            = 112;
  75.     cmPBReadMsg                    = 113;
  76.     cmPBWriteMsg                = 114;
  77.     cmPBIOKillMsg                = 115;
  78.  
  79.                                                                 {     messages for validate DefProc     }
  80.     cmValidateMsg                = 0;
  81.     cmDefaultMsg                = 1;
  82.  
  83.                                                                 {     messages for Setup DefProc     }
  84.     cmSpreflightMsg                = 0;
  85.     cmSsetupMsg                    = 1;
  86.     cmSitemMsg                    = 2;
  87.     cmSfilterMsg                = 3;
  88.     cmScleanupMsg                = 4;
  89.  
  90.                                                                 {     messages for scripting defProc     }
  91.     cmMgetMsg                    = 0;
  92.     cmMsetMsg                    = 1;
  93.  
  94.                                                                 {     messages for localization defProc     }
  95.     cmL2English                    = 0;
  96.     cmL2Intl                    = 1;
  97.  
  98.                                                                 {  private data constants  }
  99.     cdefType                    = 'cdef';                        {  main connection definition procedure  }
  100.     cvalType                    = 'cval';                        {  validation definition procedure  }
  101.     csetType                    = 'cset';                        {  connection setup definition procedure  }
  102.     clocType                    = 'cloc';                        {  connection configuration localization defProc  }
  103.     cscrType                    = 'cscr';                        {  connection scripting defProc interfaces  }
  104.     cbndType                    = 'cbnd';                        {  bundle type for connection  }
  105.     cverType                    = 'vers';
  106.  
  107.  
  108. TYPE
  109.     CMDataBufferPtr = ^CMDataBuffer;
  110.     CMDataBuffer = RECORD
  111.         thePtr:                    Ptr;
  112.         count:                    LONGINT;
  113.         channel:                CMChannel;
  114.         flags:                    CMFlags;
  115.     END;
  116.  
  117.     CMCompletorRecordPtr = ^CMCompletorRecord;
  118.     CMCompletorRecord = RECORD
  119.         async:                    BOOLEAN;
  120.         filler:                    SInt8;
  121.         completionRoutine:        ConnectionCompletionUPP;
  122.     END;
  123.  
  124.     CMCompletorPtr                        = ^CMCompletorRecord;
  125. {    Private Data Structure    }
  126.     CMSetupStructPtr = ^CMSetupStruct;
  127.     CMSetupStruct = RECORD
  128.         theDialog:                DialogPtr;
  129.         count:                    INTEGER;
  130.         theConfig:                Ptr;
  131.         procID:                    INTEGER;                                {  procID of the tool     }
  132.     END;
  133.  
  134.     CMSetupPtr                            = ^CMSetupStruct;
  135. {$ALIGN RESET}
  136. {$POP}
  137.  
  138. {$SETC UsingIncludes := ConnectionToolsIncludes}
  139.  
  140. {$ENDC} {__CONNECTIONTOOLS__}
  141.  
  142. {$IFC NOT UsingIncludes}
  143.  END.
  144. {$ENDC}
  145.